/*
 * AboutPanel.java
 *
 * Created on March 4, 2008, 2:42 PM
 */

package dnl.net.netclip;

import java.net.MalformedURLException;
import java.net.URL;

import javax.swing.JFrame;

import dnl.ui.LinkLabel;

/**
 *
 * @author  OrD1
 */
public class AboutPanel extends javax.swing.JPanel {
    
    /** Creates new form AboutPanel */
    public AboutPanel() {
        initComponents();
		try {
			URL userUrl = new URL("http://code.google.com/u/daniel.or/");
			((LinkLabel)byJL).setLabelAndLink("Daniel Ore", userUrl);
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
		try {
			URL projectUrl = new URL("http://code.google.com/p/net-clipboard/");
			((LinkLabel)projectHomeJL).setLink(projectUrl);
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        projectHomeJL = new dnl.ui.LinkLabel();
        jLabel5 = new javax.swing.JLabel();
        byJL = new dnl.ui.LinkLabel();

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18));
        jLabel1.setText("Network Clipboard");

        jLabel2.setText("Version 0.3");

        jLabel3.setText("Project Home:");

        projectHomeJL.setText("jLabel4");

        jLabel5.setText("By:");

        byJL.setText("Daniel Ore");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addComponent(jLabel3)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(53, 53, 53)
                        .addComponent(jLabel2))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(43, 43, 43)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(byJL))
                    .addComponent(projectHomeJL))
                .addContainerGap(104, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(85, 85, 85)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(byJL))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 94, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(projectHomeJL))
                .addGap(45, 45, 45))
        );
    }// </editor-fold>//GEN-END:initComponents
    
    
    public static void main(String[] args) {
		JFrame jf = new JFrame(); 
		jf.setContentPane(new AboutPanel());
		jf.setSize(400,400);
		jf.setVisible(true);
	}
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel byJL;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel projectHomeJL;
    // End of variables declaration//GEN-END:variables
    
}
